<ul class="dropdown-menu">
  <!-- 我创建的项目部分 -->
  {% if my %}
    <li class="dropdown-header" style="font-weight: 700;">我创建的项目</li>
    {% for item in my %}
      <li>
        <a class="dropdown-item" href="{% url 'dashboard' project_id=item.id %}">
          <i class="bi bi-list-check me-2"></i>{{ item.name }}
        </a>
      </li>
    {% endfor %}
    <li><hr class="dropdown-divider"></li>
  {% endif %}

  <!-- 我加入的项目部分 -->
  {% if join %}
    <li class="dropdown-header">我加入的项目</li>
    {% for item in join %}
      <li>
        <a class="dropdown-item" href="{% url 'dashboard' project_id=item.project.id %}">
          <i class="bi bi-list-check me-2"></i>{{ item.project.name }}
        </a>
      </li>
    {% endfor %}
    <li><hr class="dropdown-divider"></li>
  {% endif %}

  <!-- 底部导航项 -->
  <li>
    <a class="dropdown-item" href="/project/list/">
      <i class="bi bi-house-door me-2"></i>项目概览
    </a>
  </li>
</ul>